package
{
    import components.control.sliderbar.SliderBar;

    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;

    public class main extends Sprite
    {
        private var sliderBar:SliderBar

        public function main()
        {
            stage.scaleMode = StageScaleMode.NO_SCALE;
            stage.align = StageAlign.TOP_LEFT;

            sliderBar = new SliderBar(200, 10);
            sliderBar.addEventListener(Event.CHANGE, sliderBarChangeHandler);
            this.addChild(sliderBar);
        }

        private function sliderBarChangeHandler(event:Event):void
        {
            trace("sliderBarChangeHandler", event.currentTarget.getPercent());
        }
    }
}
